<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::WeightedLabeledData&lt; InputT, LabelT &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_weighted_labeled_data-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle"><div class="title">shark::WeightedLabeledData&lt; InputT, LabelT &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Weighted data set for supervised learning.  
 <a href="classshark_1_1_weighted_labeled_data.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_weighted_dataset_8h_source.html">shark/Data/WeightedDataset.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::WeightedLabeledData&lt; InputT, LabelT &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_weighted_labeled_data__inherit__graph.png" border="0" usemap="#ashark_1_1_weighted_labeled_data_3_01_input_t_00_01_label_t_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_weighted_labeled_data_3_01_input_t_00_01_label_t_01_4_inherit__map" id="ashark_1_1_weighted_labeled_data_3_01_input_t_00_01_label_t_01_4_inherit__map">
<area shape="rect" title="Weighted data set for supervised learning." alt="" coords="13,109,201,150"/>
<area shape="rect" title=" " alt="" coords="5,5,209,61"/>
<area shape="poly" title=" " alt="" coords="110,77,110,109,104,109,104,77"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a281b253f885a39cf0f7b4b536f477850" id="r_a281b253f885a39cf0f7b4b536f477850"><td class="memItemLeft" align="right" valign="top">typedef base_type::DataType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a281b253f885a39cf0f7b4b536f477850">DataType</a></td></tr>
<tr class="separator:a281b253f885a39cf0f7b4b536f477850"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a021e24cd4fb958820ae16690bf5e70a5" id="r_a021e24cd4fb958820ae16690bf5e70a5"><td class="memItemLeft" align="right" valign="top">typedef base_type::WeightType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a021e24cd4fb958820ae16690bf5e70a5">WeightType</a></td></tr>
<tr class="separator:a021e24cd4fb958820ae16690bf5e70a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaf3abc446e7ebb81ca857d73a34a28b" id="r_afaf3abc446e7ebb81ca857d73a34a28b"><td class="memItemLeft" align="right" valign="top">typedef InputT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a></td></tr>
<tr class="separator:afaf3abc446e7ebb81ca857d73a34a28b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf3341286338d8fcd8789fb7a0a2ef77" id="r_adf3341286338d8fcd8789fb7a0a2ef77"><td class="memItemLeft" align="right" valign="top">typedef LabelT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#adf3341286338d8fcd8789fb7a0a2ef77">LabelType</a></td></tr>
<tr class="separator:adf3341286338d8fcd8789fb7a0a2ef77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af260c63209f6881849b736c91fc000d3" id="r_af260c63209f6881849b736c91fc000d3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#af260c63209f6881849b736c91fc000d3">BOOST_STATIC_CONSTANT</a> (std::size_t, DefaultBatchSize=(<a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; InputT, LabelT &gt;::DefaultBatchSize))</td></tr>
<tr class="separator:af260c63209f6881849b736c91fc000d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0604b2b664701ba0cfc78c32e43e9f6c" id="r_a0604b2b664701ba0cfc78c32e43e9f6c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a0604b2b664701ba0cfc78c32e43e9f6c">WeightedLabeledData</a> ()</td></tr>
<tr class="memdesc:a0604b2b664701ba0cfc78c32e43e9f6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty data set.  <br /></td></tr>
<tr class="separator:a0604b2b664701ba0cfc78c32e43e9f6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9354b6293662952c09c0d16ccfe9c263" id="r_a9354b6293662952c09c0d16ccfe9c263"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a9354b6293662952c09c0d16ccfe9c263">WeightedLabeledData</a> (std::size_t numBatches)</td></tr>
<tr class="memdesc:a9354b6293662952c09c0d16ccfe9c263"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an empty set with just the correct number of batches.  <br /></td></tr>
<tr class="separator:a9354b6293662952c09c0d16ccfe9c263"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe967a168c030e74c18505403215076b" id="r_abe967a168c030e74c18505403215076b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#abe967a168c030e74c18505403215076b">WeightedLabeledData</a> (std::size_t size, element_type const &amp;element, std::size_t <a class="el" href="namespaceshark.html#af2ab10364feb8a631e0866dcf2f1a4ad">batchSize</a>=DefaultBatchSize)</td></tr>
<tr class="memdesc:abe967a168c030e74c18505403215076b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor using a single element as blueprint to create a dataset with a specified number of elements.  <br /></td></tr>
<tr class="separator:abe967a168c030e74c18505403215076b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c1ca9174edeae5642fcf786700c0418" id="r_a6c1ca9174edeae5642fcf786700c0418"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a6c1ca9174edeae5642fcf786700c0418">WeightedLabeledData</a> (<a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#adf3341286338d8fcd8789fb7a0a2ef77">LabelType</a> &gt; const &amp;data, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#a021e24cd4fb958820ae16690bf5e70a5">WeightType</a> &gt; const &amp;weights)</td></tr>
<tr class="memdesc:a6c1ca9174edeae5642fcf786700c0418"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construction from data.  <br /></td></tr>
<tr class="separator:a6c1ca9174edeae5642fcf786700c0418"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d36f2bcbae5f6fae1b5896c603f44e2" id="r_a6d36f2bcbae5f6fae1b5896c603f44e2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a6d36f2bcbae5f6fae1b5896c603f44e2">WeightedLabeledData</a> (<a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#adf3341286338d8fcd8789fb7a0a2ef77">LabelType</a> &gt; const &amp;data, double weight)</td></tr>
<tr class="memdesc:a6d36f2bcbae5f6fae1b5896c603f44e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construction from data and a constant weight for all elements.  <br /></td></tr>
<tr class="separator:a6d36f2bcbae5f6fae1b5896c603f44e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad11b0613785e1c6f36f6dd5d32662ead" id="r_ad11b0613785e1c6f36f6dd5d32662ead"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a> &gt; const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#ad11b0613785e1c6f36f6dd5d32662ead">inputs</a> () const</td></tr>
<tr class="memdesc:ad11b0613785e1c6f36f6dd5d32662ead"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the inputs as a separate container.  <br /></td></tr>
<tr class="separator:ad11b0613785e1c6f36f6dd5d32662ead"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ea4cdf11829c2b6f2ca487859f6e617" id="r_a6ea4cdf11829c2b6f2ca487859f6e617"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a6ea4cdf11829c2b6f2ca487859f6e617">inputs</a> ()</td></tr>
<tr class="memdesc:a6ea4cdf11829c2b6f2ca487859f6e617"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the inputs as a separate container.  <br /></td></tr>
<tr class="separator:a6ea4cdf11829c2b6f2ca487859f6e617"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3ca78f96dd1c1881b04d3726213a136" id="r_ae3ca78f96dd1c1881b04d3726213a136"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#adf3341286338d8fcd8789fb7a0a2ef77">LabelType</a> &gt; const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#ae3ca78f96dd1c1881b04d3726213a136">labels</a> () const</td></tr>
<tr class="memdesc:ae3ca78f96dd1c1881b04d3726213a136"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the labels as a separate container.  <br /></td></tr>
<tr class="separator:ae3ca78f96dd1c1881b04d3726213a136"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e8d5d55cc570a4a8cfb8418ccfa1587" id="r_a9e8d5d55cc570a4a8cfb8418ccfa1587"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#adf3341286338d8fcd8789fb7a0a2ef77">LabelType</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a9e8d5d55cc570a4a8cfb8418ccfa1587">labels</a> ()</td></tr>
<tr class="memdesc:a9e8d5d55cc570a4a8cfb8418ccfa1587"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the labels as a separate container.  <br /></td></tr>
<tr class="separator:a9e8d5d55cc570a4a8cfb8418ccfa1587"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b369aa6cfa440ecb7f5a150e645a2a9" id="r_a4b369aa6cfa440ecb7f5a150e645a2a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a4b369aa6cfa440ecb7f5a150e645a2a9">inputShape</a> () const</td></tr>
<tr class="memdesc:a4b369aa6cfa440ecb7f5a150e645a2a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the inputs.  <br /></td></tr>
<tr class="separator:a4b369aa6cfa440ecb7f5a150e645a2a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78fdd89eae099be245faff5907baa867" id="r_a78fdd89eae099be245faff5907baa867"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_shape.html">Shape</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a78fdd89eae099be245faff5907baa867">inputShape</a> ()</td></tr>
<tr class="memdesc:a78fdd89eae099be245faff5907baa867"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the inputs.  <br /></td></tr>
<tr class="separator:a78fdd89eae099be245faff5907baa867"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab551802a4a3d30b09984ee7c92ca64b5" id="r_ab551802a4a3d30b09984ee7c92ca64b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#ab551802a4a3d30b09984ee7c92ca64b5">labelShape</a> () const</td></tr>
<tr class="memdesc:ab551802a4a3d30b09984ee7c92ca64b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the labels.  <br /></td></tr>
<tr class="separator:ab551802a4a3d30b09984ee7c92ca64b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f6639432fcc7498e0cbb4e74a956ab6" id="r_a5f6639432fcc7498e0cbb4e74a956ab6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_shape.html">Shape</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a5f6639432fcc7498e0cbb4e74a956ab6">labelShape</a> ()</td></tr>
<tr class="memdesc:a5f6639432fcc7498e0cbb4e74a956ab6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the labels.  <br /></td></tr>
<tr class="separator:a5f6639432fcc7498e0cbb4e74a956ab6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fe95c73b1014c9e73a377ce6ede962c" id="r_a8fe95c73b1014c9e73a377ce6ede962c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">WeightedUnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a8fe95c73b1014c9e73a377ce6ede962c">weightedInputs</a> () const</td></tr>
<tr class="memdesc:a8fe95c73b1014c9e73a377ce6ede962c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs an <a class="el" href="classshark_1_1_weighted_unlabeled_data.html" title="Weighted data set for unsupervised learning.">WeightedUnlabeledData</a> object for the inputs.  <br /></td></tr>
<tr class="separator:a8fe95c73b1014c9e73a377ce6ede962c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a648fe695e393366e70092d2d80cd4f62" id="r_a648fe695e393366e70092d2d80cd4f62"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a648fe695e393366e70092d2d80cd4f62">splice</a> (std::size_t batch)</td></tr>
<tr class="memdesc:a648fe695e393366e70092d2d80cd4f62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Splits the container into two independent parts. The left part remains in the container, the right is stored as return type.  <br /></td></tr>
<tr class="separator:a648fe695e393366e70092d2d80cd4f62"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a3379551f7a879a2ed49dd6046024dcf3" id="r_a3379551f7a879a2ed49dd6046024dcf3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_labeled_data.html#a3379551f7a879a2ed49dd6046024dcf3">swap</a> (<a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a> &amp;a, <a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a> &amp;b)</td></tr>
<tr class="separator:a3379551f7a879a2ed49dd6046024dcf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class InputT, class LabelT&gt;<br />
class shark::WeightedLabeledData&lt; InputT, LabelT &gt;</div><p>Weighted data set for supervised learning. </p>
<p>The <a class="el" href="classshark_1_1_weighted_labeled_data.html" title="Weighted data set for supervised learning.">WeightedLabeledData</a> class extends <a class="el" href="classshark_1_1_labeled_data.html" title="Data set for supervised learning.">LabeledData</a> for the representation of data. In addition it holds and provides access to the corresponding weights.</p>
<p><a class="el" href="classshark_1_1_weighted_labeled_data.html" title="Weighted data set for supervised learning.">WeightedLabeledData</a> tries to mimic the underlying data as pairs of data tuples(input,label) and weights. this means that when accessing a batch by calling batch(i) or choosing one of the iterators one access the databatch by batch(i).data and the weights by batch(i).weight. to access the points and labels use batch(i).data.input and batch(i).data.label</p>
<p>this also holds true for single element access using operator(). Be aware, that direct access to element is a linear time operation. So it is not advisable to iterate over the elements, but instead iterate over the batches.</p>
<p>It is possible to gains everal views on the set. one can either get access to inputs, labels and weights separately or gain access to the unweighted dataset of inputs and labels. Additionally the sets support on-the-fly creation of the (inputs,weights) subset for unsupervised weighted learning </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00578">578</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a281b253f885a39cf0f7b4b536f477850" name="a281b253f885a39cf0f7b4b536f477850"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a281b253f885a39cf0f7b4b536f477850">&#9670;&#160;</a></span>DataType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef base_type::DataType <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::DataType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00583">583</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="afaf3abc446e7ebb81ca857d73a34a28b" name="afaf3abc446e7ebb81ca857d73a34a28b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaf3abc446e7ebb81ca857d73a34a28b">&#9670;&#160;</a></span>InputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef InputT <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;<a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">::InputType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00585">585</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="adf3341286338d8fcd8789fb7a0a2ef77" name="adf3341286338d8fcd8789fb7a0a2ef77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf3341286338d8fcd8789fb7a0a2ef77">&#9670;&#160;</a></span>LabelType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef LabelT <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::LabelType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00586">586</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="a021e24cd4fb958820ae16690bf5e70a5" name="a021e24cd4fb958820ae16690bf5e70a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a021e24cd4fb958820ae16690bf5e70a5">&#9670;&#160;</a></span>WeightType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef base_type::WeightType <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::WeightType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00584">584</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0604b2b664701ba0cfc78c32e43e9f6c" name="a0604b2b664701ba0cfc78c32e43e9f6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0604b2b664701ba0cfc78c32e43e9f6c">&#9670;&#160;</a></span>WeightedLabeledData() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::WeightedLabeledData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Empty data set. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00597">597</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_labeled_data.html#a648fe695e393366e70092d2d80cd4f62">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::splice()</a>.</p>

</div>
</div>
<a id="a9354b6293662952c09c0d16ccfe9c263" name="a9354b6293662952c09c0d16ccfe9c263"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9354b6293662952c09c0d16ccfe9c263">&#9670;&#160;</a></span>WeightedLabeledData() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::WeightedLabeledData </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>numBatches</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create an empty set with just the correct number of batches. </p>
<p>The user must initialize the dataset after that by himself. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00603">603</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="abe967a168c030e74c18505403215076b" name="abe967a168c030e74c18505403215076b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe967a168c030e74c18505403215076b">&#9670;&#160;</a></span>WeightedLabeledData() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::WeightedLabeledData </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">element_type const &amp;&#160;</td>
          <td class="paramname"><em>element</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>batchSize</em> = <code>DefaultBatchSize</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construtor using a single element as blueprint to create a dataset with a specified number of elements. </p>
<p>Optionally the desired batch Size can be set</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>the new size of the container </td></tr>
    <tr><td class="paramname">element</td><td>the blueprint element from which to create the Container </td></tr>
    <tr><td class="paramname">batchSize</td><td>the size of the batches. if this is 0, the size is unlimited </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00614">614</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="a6c1ca9174edeae5642fcf786700c0418" name="a6c1ca9174edeae5642fcf786700c0418"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c1ca9174edeae5642fcf786700c0418">&#9670;&#160;</a></span>WeightedLabeledData() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::WeightedLabeledData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#adf3341286338d8fcd8789fb7a0a2ef77">LabelType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#a021e24cd4fb958820ae16690bf5e70a5">WeightType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>weights</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construction from data. </p>
<p>Beware that when calling this constructor the organization of batches must be equal in both containers. This Constructor will not reorganize the data! </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00621">621</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="a6d36f2bcbae5f6fae1b5896c603f44e2" name="a6d36f2bcbae5f6fae1b5896c603f44e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d36f2bcbae5f6fae1b5896c603f44e2">&#9670;&#160;</a></span>WeightedLabeledData() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::WeightedLabeledData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#adf3341286338d8fcd8789fb7a0a2ef77">LabelType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>weight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construction from data and a constant weight for all elements. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00626">626</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af260c63209f6881849b736c91fc000d3" name="af260c63209f6881849b736c91fc000d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af260c63209f6881849b736c91fc000d3">&#9670;&#160;</a></span>BOOST_STATIC_CONSTANT()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::BOOST_STATIC_CONSTANT </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DefaultBatchSize&#160;</td>
          <td class="paramname"> = <code>(<a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt;&#160;InputT,&#160;LabelT&#160;&gt;::DefaultBatchSize)</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a6ea4cdf11829c2b6f2ca487859f6e617" name="a6ea4cdf11829c2b6f2ca487859f6e617"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ea4cdf11829c2b6f2ca487859f6e617">&#9670;&#160;</a></span>inputs() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a> &gt; &amp; <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::inputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to the inputs as a separate container. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00635">635</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="group__shark__globals.html#gaa539b482e46b278300d34502c579c51a">shark::UnlabeledData&lt; InputT &gt;::inputs()</a>.</p>

</div>
</div>
<a id="ad11b0613785e1c6f36f6dd5d32662ead" name="ad11b0613785e1c6f36f6dd5d32662ead"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad11b0613785e1c6f36f6dd5d32662ead">&#9670;&#160;</a></span>inputs() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a> &gt; const  &amp; <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::inputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to the inputs as a separate container. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00631">631</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="group__shark__globals.html#gaa539b482e46b278300d34502c579c51a">shark::UnlabeledData&lt; InputT &gt;::inputs()</a>.</p>

<p class="reference">Referenced by <a class="el" href="namespaceshark.html#a1a4ae1c1461484d67c14d765c9db9501">shark::inputDimension()</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#a78fdd89eae099be245faff5907baa867">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::inputShape()</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#a4b369aa6cfa440ecb7f5a150e645a2a9">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::inputShape()</a>, <a class="el" href="classshark_1_1_kernel_mean_classifier.html#a81f1f20f6bedb854fab0193d3174dac2">shark::KernelMeanClassifier&lt; InputType &gt;::train()</a>, <a class="el" href="classshark_1_1_c_svm_trainer.html#a5444acc9ade8ab1c3550bd2efafa4e59">shark::CSvmTrainer&lt; InputType, CacheType &gt;::train()</a>, <a class="el" href="classshark_1_1_r_f_trainer_3_01unsigned_01int_01_4.html#a4c1081a998508d12064ec653130f1a8f">shark::RFTrainer&lt; unsigned int &gt;::train()</a>, <a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a4975033b328b481f5bbfa2fea88ddcd9">shark::RFTrainer&lt; RealVector &gt;::train()</a>, and <a class="el" href="classshark_1_1_weighted_labeled_data.html#a8fe95c73b1014c9e73a377ce6ede962c">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::weightedInputs()</a>.</p>

</div>
</div>
<a id="a78fdd89eae099be245faff5907baa867" name="a78fdd89eae099be245faff5907baa867"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78fdd89eae099be245faff5907baa867">&#9670;&#160;</a></span>inputShape() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_shape.html">Shape</a> &amp; <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::inputShape </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the inputs. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00654">654</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_labeled_data.html#ad11b0613785e1c6f36f6dd5d32662ead">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::inputs()</a>, and <a class="el" href="group__shark__globals.html#gabdfa24d4e424c86cf39851c143b2dd37">shark::Data&lt; Type &gt;::shape()</a>.</p>

</div>
</div>
<a id="a4b369aa6cfa440ecb7f5a150e645a2a9" name="a4b369aa6cfa440ecb7f5a150e645a2a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b369aa6cfa440ecb7f5a150e645a2a9">&#9670;&#160;</a></span>inputShape() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_shape.html">Shape</a> const  &amp; <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::inputShape </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the inputs. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00649">649</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_labeled_data.html#ad11b0613785e1c6f36f6dd5d32662ead">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::inputs()</a>, and <a class="el" href="group__shark__globals.html#gabdfa24d4e424c86cf39851c143b2dd37">shark::Data&lt; Type &gt;::shape()</a>.</p>

<p class="reference">Referenced by <a class="el" href="namespaceshark.html#a23d76a81bf28d05f9357d236a63a17c8">shark::bootstrap()</a>.</p>

</div>
</div>
<a id="a9e8d5d55cc570a4a8cfb8418ccfa1587" name="a9e8d5d55cc570a4a8cfb8418ccfa1587"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e8d5d55cc570a4a8cfb8418ccfa1587">&#9670;&#160;</a></span>labels() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#adf3341286338d8fcd8789fb7a0a2ef77">LabelType</a> &gt; &amp; <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::labels </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to the labels as a separate container. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00644">644</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="ae3ca78f96dd1c1881b04d3726213a136" name="ae3ca78f96dd1c1881b04d3726213a136"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3ca78f96dd1c1881b04d3726213a136">&#9670;&#160;</a></span>labels() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#adf3341286338d8fcd8789fb7a0a2ef77">LabelType</a> &gt; const  &amp; <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::labels </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to the labels as a separate container. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00640">640</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="namespaceshark.html#a01fc9327a0b630c4f5458e7978cc363c">shark::classSizes()</a>, <a class="el" href="namespaceshark.html#a1514586242fb20c13fa7d40e634efab7">shark::labelDimension()</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#a5f6639432fcc7498e0cbb4e74a956ab6">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::labelShape()</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#ab551802a4a3d30b09984ee7c92ca64b5">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::labelShape()</a>, <a class="el" href="namespaceshark.html#ac00756ac00a20cb161c69cbb30bb0ee3">shark::numberOfClasses()</a>, <a class="el" href="classshark_1_1_r_f_trainer_3_01unsigned_01int_01_4.html#a4c1081a998508d12064ec653130f1a8f">shark::RFTrainer&lt; unsigned int &gt;::train()</a>, and <a class="el" href="classshark_1_1_r_f_trainer_3_01_real_vector_01_4.html#a4975033b328b481f5bbfa2fea88ddcd9">shark::RFTrainer&lt; RealVector &gt;::train()</a>.</p>

</div>
</div>
<a id="a5f6639432fcc7498e0cbb4e74a956ab6" name="a5f6639432fcc7498e0cbb4e74a956ab6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f6639432fcc7498e0cbb4e74a956ab6">&#9670;&#160;</a></span>labelShape() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_shape.html">Shape</a> &amp; <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::labelShape </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the labels. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00664">664</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_labeled_data.html#ae3ca78f96dd1c1881b04d3726213a136">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::labels()</a>, and <a class="el" href="group__shark__globals.html#gabdfa24d4e424c86cf39851c143b2dd37">shark::Data&lt; Type &gt;::shape()</a>.</p>

</div>
</div>
<a id="ab551802a4a3d30b09984ee7c92ca64b5" name="ab551802a4a3d30b09984ee7c92ca64b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab551802a4a3d30b09984ee7c92ca64b5">&#9670;&#160;</a></span>labelShape() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_shape.html">Shape</a> const  &amp; <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::labelShape </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the labels. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00659">659</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_labeled_data.html#ae3ca78f96dd1c1881b04d3726213a136">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::labels()</a>, and <a class="el" href="group__shark__globals.html#gabdfa24d4e424c86cf39851c143b2dd37">shark::Data&lt; Type &gt;::shape()</a>.</p>

<p class="reference">Referenced by <a class="el" href="namespaceshark.html#a23d76a81bf28d05f9357d236a63a17c8">shark::bootstrap()</a>.</p>

</div>
</div>
<a id="a648fe695e393366e70092d2d80cd4f62" name="a648fe695e393366e70092d2d80cd4f62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a648fe695e393366e70092d2d80cd4f62">&#9670;&#160;</a></span>splice()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a> <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::splice </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>batch</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Splits the container into two independent parts. The left part remains in the container, the right is stored as return type. </p>
<p>Order of elements remain unchanged. The SharedVector is not allowed to be shared for this to work. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00677">677</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_labeled_data.html#a648fe695e393366e70092d2d80cd4f62">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::splice()</a>, and <a class="el" href="classshark_1_1_weighted_labeled_data.html#a0604b2b664701ba0cfc78c32e43e9f6c">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::WeightedLabeledData()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_labeled_data.html#a648fe695e393366e70092d2d80cd4f62">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::splice()</a>.</p>

</div>
</div>
<a id="a8fe95c73b1014c9e73a377ce6ede962c" name="a8fe95c73b1014c9e73a377ce6ede962c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fe95c73b1014c9e73a377ce6ede962c">&#9670;&#160;</a></span>weightedInputs()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">WeightedUnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_labeled_data.html#afaf3abc446e7ebb81ca857d73a34a28b">InputType</a> &gt; <a class="el" href="classshark_1_1_weighted_labeled_data.html">shark::WeightedLabeledData</a>&lt; InputT, LabelT &gt;::weightedInputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructs an <a class="el" href="classshark_1_1_weighted_unlabeled_data.html" title="Weighted data set for unsupervised learning.">WeightedUnlabeledData</a> object for the inputs. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00669">669</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_labeled_data.html#ad11b0613785e1c6f36f6dd5d32662ead">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::inputs()</a>.</p>

</div>
</div>
<h2 class="groupheader">Friends And Related Symbol Documentation</h2>
<a id="a3379551f7a879a2ed49dd6046024dcf3" name="a3379551f7a879a2ed49dd6046024dcf3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3379551f7a879a2ed49dd6046024dcf3">&#9670;&#160;</a></span>swap</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class InputT , class LabelT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; InputT, LabelT &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; InputT, LabelT &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00681">681</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Data/<a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
